package com.bdmc.task.mapper;

import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.task.domain.TaskWorkPlan;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.task.domain.bo.TaskWorkPlanBo;
import com.bdmc.task.domain.vo.TaskWorkPlanVo;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 排班计划Mapper接口
 *
 * @author bdmc
 * @date 2022-03-06
 */
public interface TaskWorkPlanMapper extends BaseMapperPlus<TaskWorkPlan> {

    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<TaskWorkPlanVo> mySelectPage(@Param("page") Page<TaskWorkPlan> page, @Param("param") TaskWorkPlanBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<TaskWorkPlanVo> mySelectPage(@Param("param") TaskWorkPlanBo bo);

}
